<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>课程修改</title>
    <style>
        body {
            background-color: #f2f2f2;
            font-family: Arial, sans-serif;
            color: #333;
        }

        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            width: 400px;
            margin: 0 auto;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        form input[type="text"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border-radius: 3px;
            border: 1px solid #ccc;
        }

        form input[type="submit"] {
            width: 100%;
            padding: 10px;
            background-color: #4caf50;
            color: #fff;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        p {
            color: #4caf50;
            margin-top: 10px;
            text-align: center;
        }
    </style>
</head>
<body>
    <form th:action="@{/manong/gotoUpdate}" method="post">
        <label>课程号:</label>
        <input type="text" name="cno" th:placeholder="${lesson.cno}" required><br>

        <label>课程名称:</label>
        <input type="text" name="course" th:placeholder="${lesson.course}" required><br>

        <label>授课教师:</label>
        <input type="text" name="teacher" th:placeholder="${lesson.teacher}" required><br>

        <label>上课年级:</label>
        <input type="text" name="year" th:placeholder="${lesson.year}" required><br>

        <label>上课时间:</label>
        <input type="text" name="time" th:placeholder="${lesson.time}" required><br>

        <label>授课教室:</label>
        <input type="text" name="classroom" th:placeholder="${lesson.classroom}" required><br>

        <label>星期:</label>
        <input type="text" name="week" th:placeholder="${lesson.week}" required><br>

        <label>专业:</label>
        <input type="text" name="speciality" th:placeholder="${lesson.speciality}" required><br>

        <label>学分:</label>
        <input type="text" name="credit" th:placeholder="${lesson.credit}" required><br>

        <input type="submit" name="submit" value="修改" onclick="return confirm('确定要修改吗')">
    </form>

    <p th:if="${msg}" th:text="${msg}"></p>
</body>
</html>


